﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - Blog Admin</title>
    @Styles.Render("~/Content/dashboard")
    @Scripts.Render("~/bundles/modernizr")

</head>
    <body>

        <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <div class="container-fluid">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="#">Blogg Adminpanel</a>
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li><a href="#">Inloggad som: @Html.Encode(User.Identity.Name)</a></li>
                        <li>@Html.ActionLink("Inställningar", "BlogSettings", "Admin")</li>
                        <li>@Html.ActionLink("Profil", "UserSettings", "Admin")</li>
                        <li>@Html.ActionLink("Logga ut", "LogOut", "Admin") </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="container-fluid">

            <div class="row">
                <div class="col-sm-3 col-md-2 sidebar">
                    <ul class="nav nav-sidebar">
                        <li><h4>Blogginlägg</h4></li>
                        <li>@Html.ActionLink("Visa Inlägg", "Index", "Admin")</li>
                        <li>@Html.ActionLink("Skapa nytt", "CreatePost", "Admin")</li>
                    </ul>
                    <hr/>
                    <ul class="nav nav-sidebar">
                        <li><h4>Länkar</h4></li>
                        <li>@Html.ActionLink("Visa Länkar", "BlogRoll", "Admin")</li>
                        <li>@Html.ActionLink("Skapa nytt", "CreateLink", "Admin")</li>
                    </ul>
                </div>

                @RenderBody()
                
            </div>
        </div>

                @Scripts.Render("~/bundles/jquery")
                @Scripts.Render("~/bundles/bootstrap")
                @RenderSection("scripts", required: false)
</body>
</html>

